package com.clf.springBoot.modules.account.service;

import com.clf.springBoot.modules.account.entity.User;
import com.clf.springBoot.modules.common.vo.Result;
import com.clf.springBoot.modules.common.vo.Search;
import com.github.pagehelper.PageInfo;

/**
 * @Author: chenglongfei
 * @date: 2022/7/7
 * @Description UserService
 */
public interface UserService {
    Result<User> login(User user);

    Result<User> insertUser(User user);

    Result<User> updateUser(User user);

    Result<Object> deleteUserById(int id);

    User getUserById(int id);

    User getUserByUserName(String userName);

    PageInfo<User> getUsersBySearch(Search search);

    void logout();
}
